# while循环
entry=''
while [ "$entry" != 'end' ]
do
    read -p 'Enter a word: ' entry
    echo $entry
done

# 死循环
count=0
while :
do
    let 'count+=1'
    sleep 1
    echo $count
done